﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
    public partial class Feed
    {
        partial void Name_Compute(ref string result)
        {
            StringBuilder sb = new StringBuilder();
            if (FeedBase != null)
            {
                if (sb.Length > 0) sb.Append(" + ");
                sb.Append(FeedBase.Name);
            }
            if (Bait != null)
            {
                if (sb.Length > 0) sb.Append(" + ");
                sb.Append(Bait.Name);
            }
            if (Aroma != null)
            {
                if (sb.Length > 0) sb.Append(" + ");
                sb.Append(Aroma.Name);
            }
            result = sb.ToString();
        }
    }
}
